const express = require('express');
const router = express.Router();
const pool = require('../pool.js')
module.exports = router;
//测试地址:http://127.0.0.1:8080/v1/index.php/detail
router.get('/detail', (req, res) => {
	let id = req.query.lid
	let sql = 'select * from detail where id=?'
	pool.query(sql, id, (err, result) => {
		if (err) throw err;
		res.send(result)
		//console.log(result)
	})
})
